.class public Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;
.super Ljava/lang/Object;
.source "PieceSliderDragHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;,
        Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;,
        Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;
    }
.end annotation


# instance fields
.field private a:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;

.field private b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

.field private c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

.field private d:Z

.field private e:Z

.field private f:F

.field private g:I

.field private h:D

.field private i:F

.field private j:F

.field private k:F

.field private l:I

.field private m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

.field private n:Landroid/content/res/Resources;

.field private o:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;

.field private p:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;

.field private q:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;

.field private r:I

.field private s:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;

.field private t:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->e:Z

    .line 4
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->l:I

    .line 5
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$a;

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;F)F
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->i:F

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->l:I

    return p0
.end method

.method private a(FZ)V
    .locals 17

    move-object/from16 v0, p0

    .line 73
    iget-wide v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->h:D

    .line 74
    iget-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;

    .line 75
    invoke-virtual {v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->a()J

    move-result-wide v4

    .line 76
    iget-object v6, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v6}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    check-cast v6, Landroid/widget/FrameLayout$LayoutParams;

    .line 77
    iget v7, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->f:F

    sub-float v7, p1, v7

    .line 78
    iget-object v8, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v9, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    long-to-double v11, v9

    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v1

    float-to-double v13, v7

    invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v11, v13

    double-to-int v7, v11

    .line 79
    iget-wide v11, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    move-object v8, v3

    move-wide v15, v4

    long-to-double v3, v11

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v3, v3, v1

    invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v3, v13

    double-to-int v3, v3

    sub-long/2addr v11, v9

    long-to-double v4, v11

    .line 80
    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v4, v4, v1

    double-to-int v4, v4

    if-gez v7, :cond_0

    const/4 v7, 0x0

    move v3, v4

    :cond_0
    int-to-double v9, v3

    move-wide v11, v15

    long-to-double v11, v11

    .line 81
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v1

    cmpl-double v5, v9, v11

    if-ltz v5, :cond_1

    double-to-int v3, v11

    sub-int v7, v3, v4

    :cond_1
    if-eqz p2, :cond_8

    int-to-double v9, v7

    .line 82
    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v9, v1

    double-to-long v9, v9

    int-to-double v11, v3

    .line 83
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v11, v1

    double-to-long v1, v11

    .line 84
    invoke-virtual {v8}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->b()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_2
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_7

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    .line 85
    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->a:J

    iget-object v8, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v13, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->a:J

    cmp-long v8, v11, v13

    if-nez v8, :cond_3

    goto :goto_0

    .line 86
    :cond_3
    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    cmp-long v8, v9, v11

    if-lez v8, :cond_4

    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    cmp-long v8, v9, v11

    if-ltz v8, :cond_6

    :cond_4
    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    cmp-long v8, v1, v11

    if-lez v8, :cond_5

    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    cmp-long v8, v1, v11

    if-ltz v8, :cond_6

    :cond_5
    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    cmp-long v8, v9, v11

    if-gez v8, :cond_2

    iget-wide v11, v5, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    cmp-long v5, v1, v11

    if-lez v5, :cond_2

    .line 87
    :cond_6
    iget v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->g:I

    iput v1, v6, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 88
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getWidth()I

    move-result v1

    iput v1, v6, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 89
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void

    .line 90
    :cond_7
    iget-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iput-wide v9, v3, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    .line 91
    iput-wide v1, v3, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    .line 92
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->o:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;

    if-eqz v1, :cond_9

    .line 93
    invoke-interface {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;->a()V

    goto :goto_1

    .line 94
    :cond_8
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->o:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;

    if-eqz v1, :cond_9

    .line 95
    invoke-interface {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;->b()V

    .line 96
    :cond_9
    :goto_1
    iput v4, v6, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 97
    iput v7, v6, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 98
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;FZ)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a(FZ)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;)Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->s:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;

    return-object p0
.end method

.method private b(FZ)V
    .locals 17

    move-object/from16 v0, p0

    .line 26
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;

    .line 27
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->a()J

    move-result-wide v2

    .line 28
    iget-wide v4, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->h:D

    .line 29
    iget-object v6, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v6}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    check-cast v6, Landroid/widget/FrameLayout$LayoutParams;

    .line 30
    iget v7, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->f:F

    sub-float v7, p1, v7

    .line 31
    iget-boolean v8, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->e:Z

    const-wide v9, 0x408f400000000000L    # 1000.0

    if-eqz v8, :cond_5

    .line 32
    iget-object v8, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v13, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    iget-wide v11, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    sub-long/2addr v13, v11

    long-to-double v13, v13

    invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v13, v13, v4

    float-to-double v7, v7

    invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v13, v7

    double-to-int v7, v13

    long-to-double v11, v11

    .line 33
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v4

    double-to-int v8, v11

    int-to-double v11, v7

    mul-double v9, v9, v4

    cmpg-double v13, v11, v9

    if-gez v13, :cond_0

    double-to-int v7, v9

    :cond_0
    add-int v9, v8, v7

    int-to-double v9, v9

    long-to-double v11, v2

    .line 34
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v4

    cmpl-double v13, v9, v11

    if-lez v13, :cond_1

    double-to-int v7, v11

    sub-int/2addr v7, v8

    .line 35
    :cond_1
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->b()Ljava/util/List;

    move-result-object v1

    .line 36
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    .line 37
    iget-object v10, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v10, v10, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    iget-wide v12, v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    cmp-long v14, v10, v12

    if-gez v14, :cond_2

    .line 38
    iget-wide v9, v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    invoke-static {v2, v3, v9, v10}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v2

    goto :goto_0

    :cond_3
    add-int v1, v8, v7

    int-to-double v9, v1

    long-to-double v11, v2

    .line 39
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v4

    cmpl-double v1, v9, v11

    if-lez v1, :cond_4

    double-to-int v1, v11

    sub-int v7, v1, v8

    :cond_4
    add-int v1, v8, v7

    .line 40
    iput v7, v6, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 41
    iput v8, v6, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    const-wide/16 v11, 0x0

    goto/16 :goto_2

    .line 42
    :cond_5
    iget-object v8, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v11, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    iget-wide v13, v8, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    sub-long v13, v11, v13

    long-to-double v13, v13

    invoke-static {v13, v14}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v13, v13, v4

    float-to-double v7, v7

    invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z

    sub-double/2addr v13, v7

    double-to-int v7, v13

    long-to-double v11, v11

    .line 43
    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v11, v11, v4

    double-to-int v8, v11

    int-to-double v11, v7

    mul-double v9, v9, v4

    cmpg-double v13, v11, v9

    if-gez v13, :cond_6

    double-to-int v7, v9

    :cond_6
    sub-int/2addr v8, v7

    if-gez v8, :cond_7

    const/4 v8, 0x0

    .line 44
    iget-object v7, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v9, v7, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    long-to-double v9, v9

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v9, v9, v4

    double-to-int v7, v9

    .line 45
    :cond_7
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->b()Ljava/util/List;

    move-result-object v1

    .line 46
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    const-wide/16 v11, 0x0

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_9

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    .line 47
    iget-object v10, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v13, v10, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    move-object/from16 p1, v1

    move-wide v15, v2

    iget-wide v1, v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    cmp-long v3, v13, v1

    if-lez v3, :cond_8

    .line 48
    iget-wide v1, v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    invoke-static {v11, v12, v1, v2}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v1

    move-wide v11, v1

    :cond_8
    move-object/from16 v1, p1

    move-wide v2, v15

    goto :goto_1

    :cond_9
    move-wide v15, v2

    int-to-double v1, v8

    long-to-double v9, v11

    .line 49
    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v9, v9, v4

    cmpg-double v3, v1, v9

    if-gez v3, :cond_a

    double-to-int v1, v9

    .line 50
    iget-object v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v2, v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    long-to-double v2, v2

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v2, v2, v4

    double-to-int v2, v2

    sub-int v7, v2, v1

    move v8, v1

    :cond_a
    add-int v1, v8, v7

    .line 51
    iput v7, v6, Landroid/widget/FrameLayout$LayoutParams;->width:I

    .line 52
    iput v8, v6, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    move-wide v2, v15

    .line 53
    :goto_2
    iget-object v7, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    invoke-virtual {v7, v6}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    int-to-double v6, v8

    .line 54
    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v6, v4

    double-to-long v6, v6

    cmp-long v8, v6, v11

    if-gez v8, :cond_b

    goto :goto_3

    :cond_b
    move-wide v11, v6

    :goto_3
    int-to-double v6, v1

    .line 55
    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v6, v4

    double-to-long v4, v6

    cmp-long v1, v4, v2

    if-lez v1, :cond_c

    goto :goto_4

    :cond_c
    move-wide v2, v4

    .line 56
    :goto_4
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->p:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;

    if-eqz v1, :cond_e

    .line 57
    iget-boolean v4, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->e:Z

    if-eqz v4, :cond_d

    .line 58
    invoke-interface {v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;->b(J)V

    goto :goto_5

    .line 59
    :cond_d
    invoke-interface {v1, v11, v12}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;->a(J)V

    :cond_e
    :goto_5
    if-eqz p2, :cond_f

    .line 60
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iput-wide v11, v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->c:J

    .line 61
    iput-wide v2, v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->d:J

    .line 62
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->p:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;

    if-eqz v1, :cond_f

    .line 63
    invoke-interface {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;->a()V

    :cond_f
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;FZ)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b(FZ)V

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->i:F

    return p0
.end method


# virtual methods
.method public a(D)V
    .locals 0

    .line 4
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->h:D

    return-void
.end method

.method public a(I)V
    .locals 0

    .line 102
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->r:I

    return-void
.end method

.method public a(Landroid/view/MotionEvent;Landroid/view/ViewGroup;)V
    .locals 10

    .line 6
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 7
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    .line 8
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->n:Landroid/content/res/Resources;

    if-nez v2, :cond_0

    .line 9
    invoke-virtual {p2}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    iput-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->n:Landroid/content/res/Resources;

    .line 10
    :cond_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->n:Landroid/content/res/Resources;

    sget v3, Les/v4;->durec_caption_multi_track_scroll_recognized_width:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v2

    float-to-int v2, v2

    .line 11
    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->l:I

    if-nez v3, :cond_1

    .line 12
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->n:Landroid/content/res/Resources;

    sget v4, Les/v4;->durec_caption_multi_track_scroll_delta_x:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->l:I

    :cond_1
    const/4 v3, 0x1

    if-eqz v1, :cond_13

    const/16 v4, 0xc8

    const/16 v5, 0x64

    if-eq v1, v3, :cond_d

    const/4 v6, 0x2

    if-eq v1, v6, :cond_2

    const/4 v2, 0x3

    if-eq v1, v2, :cond_d

    const/4 v2, 0x5

    if-eq v1, v2, :cond_13

    const/4 v2, 0x6

    if-eq v1, v2, :cond_d

    goto/16 :goto_6

    .line 13
    :cond_2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-virtual {v1, p2, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a(Landroid/content/Context;Landroid/view/MotionEvent;)V

    .line 14
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-nez p2, :cond_3

    goto/16 :goto_6

    .line 15
    :cond_3
    iget-boolean p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    const/4 v1, 0x0

    if-eqz p2, :cond_4

    .line 16
    invoke-direct {p0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b(FZ)V

    goto :goto_0

    .line 17
    :cond_4
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a()Z

    move-result p2

    if-eqz p2, :cond_5

    .line 18
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    sget v7, Les/u4;->durec_caption_piece_long_press_bg_color:I

    invoke-virtual {p2, v7}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;->setBarColor(I)V

    .line 19
    invoke-direct {p0, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a(FZ)V

    .line 20
    :cond_5
    :goto_0
    iget-boolean p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-nez p2, :cond_7

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->b()Z

    move-result p2

    if-eqz p2, :cond_7

    .line 21
    iget p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->j:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    sub-float/2addr p2, v0

    .line 22
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->k:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v1

    sub-float/2addr v0, v1

    .line 23
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v1

    .line 24
    iput v4, v1, Landroid/os/Message;->what:I

    .line 25
    invoke-static {p2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_6

    const/16 v0, 0x1e

    .line 26
    iput v0, v1, Landroid/os/Message;->arg1:I

    float-to-int p2, p2

    .line 27
    iput p2, v1, Landroid/os/Message;->arg2:I

    goto :goto_1

    :cond_6
    const/16 p2, 0x28

    .line 28
    iput p2, v1, Landroid/os/Message;->arg1:I

    float-to-int p2, v0

    .line 29
    iput p2, v1, Landroid/os/Message;->arg2:I

    .line 30
    :goto_1
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {p2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_6

    .line 31
    :cond_7
    iget-boolean p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-nez p2, :cond_8

    if-nez p2, :cond_14

    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a()Z

    move-result p2

    if-eqz p2, :cond_14

    .line 32
    :cond_8
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->i:F

    .line 33
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->s:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;

    invoke-virtual {p2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;->getCenterX()I

    move-result p2

    .line 34
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->r:I

    div-int/lit8 v4, v1, 0x2

    sub-int v4, p2, v4

    .line 35
    div-int/2addr v1, v6

    add-int/2addr p2, v1

    add-int/2addr v4, v2

    int-to-float v1, v4

    const-wide/16 v7, 0x14

    const/16 v4, 0x14

    const/16 v9, 0xa

    cmpg-float v1, v0, v1

    if-gez v1, :cond_a

    .line 36
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object p2

    .line 37
    iput v5, p2, Landroid/os/Message;->what:I

    .line 38
    iput v3, p2, Landroid/os/Message;->arg1:I

    .line 39
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-eqz v0, :cond_9

    .line 40
    iput v4, p2, Landroid/os/Message;->arg2:I

    goto :goto_2

    .line 41
    :cond_9
    iput v9, p2, Landroid/os/Message;->arg2:I

    .line 42
    :goto_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {v0, p2, v7, v8}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto/16 :goto_6

    :cond_a
    sub-int/2addr p2, v2

    int-to-float p2, p2

    cmpl-float p2, v0, p2

    if-lez p2, :cond_c

    .line 43
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object p2

    .line 44
    iput v5, p2, Landroid/os/Message;->what:I

    .line 45
    iput v6, p2, Landroid/os/Message;->arg1:I

    .line 46
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-eqz v0, :cond_b

    .line 47
    iput v4, p2, Landroid/os/Message;->arg2:I

    goto :goto_3

    .line 48
    :cond_b
    iput v9, p2, Landroid/os/Message;->arg2:I

    .line 49
    :goto_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {v0, p2, v7, v8}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    goto/16 :goto_6

    .line 50
    :cond_c
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {p2, v5}, Landroid/os/Handler;->removeMessages(I)V

    goto/16 :goto_6

    .line 51
    :cond_d
    invoke-virtual {p2}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    invoke-interface {v1, v3}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 52
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-nez v1, :cond_e

    goto :goto_6

    .line 53
    :cond_e
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-eqz v1, :cond_f

    .line 54
    invoke-direct {p0, v0, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b(FZ)V

    goto :goto_4

    .line 55
    :cond_f
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a()Z

    move-result v1

    if-eqz v1, :cond_10

    .line 56
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/q;->d()V

    .line 57
    invoke-direct {p0, v0, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a(FZ)V

    .line 58
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    sget v1, Les/u4;->durec_caption_piece_normal_bg_color:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;->setBarColor(I)V

    .line 59
    :cond_10
    :goto_4
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    if-nez v0, :cond_11

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->b()Z

    move-result v0

    if-eqz v0, :cond_11

    const-string v0, "MultiTrackBar"

    const-string v1, "action up: \u975e\u62d6\u62fd\u72b6\u6001\u4e14\u4e3a\u79fb\u52a8\u72b6\u6001"

    .line 60
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_5

    .line 61
    :cond_11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->q:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;

    if-eqz v0, :cond_12

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-eqz v1, :cond_12

    .line 62
    invoke-interface {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;->a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;)V

    const-string v0, "subtitle_track"

    .line 63
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/q;->b(Ljava/lang/String;)V

    .line 64
    :cond_12
    :goto_5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-virtual {v0, p2, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a(Landroid/content/Context;Landroid/view/MotionEvent;)V

    .line 65
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {p2, v5}, Landroid/os/Handler;->removeMessages(I)V

    .line 66
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->t:Landroid/os/Handler;

    invoke-virtual {p2, v4}, Landroid/os/Handler;->removeMessages(I)V

    const/4 p2, 0x0

    .line 67
    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    goto :goto_6

    .line 68
    :cond_13
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;

    invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/b;->a(Landroid/content/Context;Landroid/view/MotionEvent;)V

    .line 69
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-eqz v0, :cond_14

    .line 70
    invoke-virtual {p2}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;

    move-result-object p2

    invoke-interface {p2, v3}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 71
    :cond_14
    :goto_6
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->j:F

    .line 72
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->k:F

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;)V
    .locals 0

    .line 103
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->s:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/MultiTrackBar;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;)V
    .locals 0

    .line 100
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->p:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$b;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;)V
    .locals 0

    .line 99
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->o:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$c;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;)V
    .locals 0

    .line 101
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->q:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d$d;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;)V
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;

    return-void
.end method

.method public b(Landroid/view/MotionEvent;Landroid/view/ViewGroup;)Z
    .locals 8

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->a:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/f;->b()Ljava/util/List;

    move-result-object v0

    .line 4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    .line 5
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz p1, :cond_1

    if-eq p1, v3, :cond_0

    const/4 v4, 0x3

    if-eq p1, v4, :cond_0

    const/4 v4, 0x5

    if-eq p1, v4, :cond_1

    const/4 p2, 0x6

    if-eq p1, p2, :cond_0

    goto :goto_3

    .line 6
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-eqz p1, :cond_7

    return v3

    :cond_1
    float-to-double v4, v1

    .line 7
    iget-wide v6, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->h:D

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v4, v6

    double-to-long v4, v4

    .line 8
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_2
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    .line 9
    invoke-virtual {v0, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->a(J)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 10
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    .line 11
    invoke-virtual {v0, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;->b(J)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 12
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->e:Z

    .line 13
    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    goto :goto_1

    .line 14
    :cond_3
    invoke-virtual {v0, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;->c(J)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 15
    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->e:Z

    .line 16
    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->d:Z

    :cond_4
    :goto_1
    const/4 v6, 0x1

    goto :goto_2

    :cond_5
    const/4 v6, 0x0

    :goto_2
    if-eqz v6, :cond_2

    .line 17
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    .line 18
    iput v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->f:F

    goto :goto_0

    .line 19
    :cond_6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    if-nez p1, :cond_8

    :cond_7
    :goto_3
    return v2

    .line 20
    :cond_8
    invoke-virtual {p2}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p1

    :goto_4
    if-ge v2, p1, :cond_a

    .line 21
    invoke-virtual {p2, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    .line 22
    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v1

    .line 23
    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->c:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/e;

    iget-wide v6, v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/c;->a:J

    cmp-long v1, v4, v6

    if-nez v1, :cond_9

    .line 24
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->b:Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/PieceView;

    .line 25
    invoke-virtual {v0}, Landroid/widget/TextView;->getLeft()I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/multitrack/d;->g:I

    goto :goto_5

    :cond_9
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    :cond_a
    :goto_5
    return v3
.end method
